package com.car.rental.vehicle.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.car.rental.vehicle.entity.VehicleType;
import com.car.rental.vehicle.mapper.VehicleTypeMapper;
import com.car.rental.vehicle.service.VehicleTypeService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VehicleTypeServiceImpl extends ServiceImpl<VehicleTypeMapper, VehicleType> implements VehicleTypeService {
    
    @Override
    public List<VehicleType> listAllSorted() {
        return list(new LambdaQueryWrapper<VehicleType>()
                .orderByAsc(VehicleType::getSort));
    }
} 